package com.example.actearly_revised;

public class Custom_Timer {
	static boolean go = false;
	static Thread t;
	public static boolean Custom_Timer(){
		
		t = new Thread() {
			@Override
			// must define the thread's "purpose" with the run method
			public void run() {
				try {
					long start = System.currentTimeMillis();
					while (!go) { // basic timer structure
						if (System.currentTimeMillis() - start >= 1 * 400) {
							go = true;
						}
					}
				} catch (Exception e) {
					go = false;
					e.printStackTrace();
				}
			}
		};
		
		t.start();
		return go;
	}
}
